package com.czkt.rabbitmq;


import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class ConsumerService {

    @RabbitListener(queues = "simple.luoliang")
    public void consumer(String massage){
        System.out.println("接收到的值是" + massage);
    }

}
